Skip to content

Document Routes: support delegation of ETag Compare-And-Swap to implementation - #108

Merged
milt merged 4 commits into
masterfrom
etag_cas
Aug 17, 2026
Merged

Document Routes: support delegation of ETag Compare-And-Swap to implementation#108
milt merged 4 commits into
masterfrom
etag_cas

Conversation

@milt

@milt milt commented Aug 10, 2026

Copy link
Copy Markdown
Member

LRS implementations should be able to perform compare-and-swap document operations using ETags.

This PR takes the work in #106 and extends it to all applicable document actions, and additionally adds normalized preconditions to the pedestal context for the impl to use.

Note that this does NOT disable the existing precondition checks used by the memory LRS and though these do not interfere with implementations doing it themselves it is extra work. A further needed improvement is to allow implementations to signal to the lib that they are capable of CAS and do not need the interceptors turned on.

This is now implemented, and SQL LRS is using successfully

@milt
milt requested a review from cliffcaseyyet August 17, 2026 20:23
@milt
milt merged commit abd782a into master Aug 17, 2026
6 checks passed
@milt
milt deleted the etag_cas branch August 17, 2026 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants